package com.ruoyi.project.modules.interfaceinfo.domain;

import com.ruoyi.project.modules.interfaceinfo.vo.InterfaceParam;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.List;
import java.util.Set;

/**
 * 虚拟用况接口对象 t_virtual_usage
 * 
 * @author smallrain
 * @date 2021-10-29
 */
public class VirtualUsage extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 接口id */
    @Excel(name = "接口id")
    private Long interfaceId;
    /**
     * 别名
     */
    private String aliasName;

    /** 关联接口id */
    @Excel(name = "关联接口id")
    private Long relationInterfaceId;
    @Excel(name = "主接口名称")
    private String masterInterfaceName;
    @Excel(name = "从联接口名称")
    private String slaveInterfaceName;

    private String masterFbType;

    private String slaveFbType;

    /**
     * 接口类型（1get 2post 3put 4delete）
     */
    private Integer interfaceType;

    private Set<Long> dubboInterfaceIds;

    private Set<Long> relationInterfaceIds;

    private String dubboUrl;
    /**
     * 操作类型（1增 2删 3改 4查）
     */
    private String optType;
    /**
     * 非功能需求
     */
    private String nonFunctionalRequirements;
    /**
     * 接口描述
     */
    private String interfaceDescription;

    private Long processBranchId;

    private String model;

    private String selfModel;

    private Set<Long> ids;

    // 1-虚拟用况 2-虚拟用况组
    private String virtualUsageType;

    private Long virtualUsageGroupDetailId;

    private String isMaster;
    private String isAllowEmpty;
    private String slaveAppType;
    private String dictCategory;
    private String dictType;
    private String aliasEnName;
    private String operateType;
    private Long domainId;
    private Long domainObjectId;
    private Long errorCodeCategoryId;
    private String errorCode;

    public Long getErrorCodeCategoryId() {
        return errorCodeCategoryId;
    }

    public void setErrorCodeCategoryId(Long errorCodeCategoryId) {
        this.errorCodeCategoryId = errorCodeCategoryId;
    }

    public String getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }
    public String getOperateType() {
        return operateType;
    }

    public void setOperateType(String operateType) {
        this.operateType = operateType;
    }

    public Long getDomainId() {
        return domainId;
    }

    public void setDomainId(Long domainId) {
        this.domainId = domainId;
    }

    public Long getDomainObjectId() {
        return domainObjectId;
    }

    public void setDomainObjectId(Long domainObjectId) {
        this.domainObjectId = domainObjectId;
    }

    public String getAliasEnName() {
        return aliasEnName;
    }

    public void setAliasEnName(String aliasEnName) {
        this.aliasEnName = aliasEnName;
    }

    public String getDictCategory() {
        return dictCategory;
    }

    public void setDictCategory(String dictCategory) {
        this.dictCategory = dictCategory;
    }

    public String getDictType() {
        return dictType;
    }

    public void setDictType(String dictType) {
        this.dictType = dictType;
    }

    public String getSlaveAppType() {
        return slaveAppType;
    }

    public void setSlaveAppType(String slaveAppType) {
        this.slaveAppType = slaveAppType;
    }

    public String getIsAllowEmpty() {
        return isAllowEmpty;
    }

    public void setIsAllowEmpty(String isAllowEmpty) {
        this.isAllowEmpty = isAllowEmpty;
    }

    public String getIsMaster() {
        return isMaster;
    }

    public void setIsMaster(String isMaster) {
        this.isMaster = isMaster;
    }

    public Long getVirtualUsageGroupDetailId() {
        return virtualUsageGroupDetailId;
    }

    public void setVirtualUsageGroupDetailId(Long virtualUsageGroupDetailId) {
        this.virtualUsageGroupDetailId = virtualUsageGroupDetailId;
    }

    public String getVirtualUsageType() {
        return virtualUsageType;
    }

    public void setVirtualUsageType(String virtualUsageType) {
        this.virtualUsageType = virtualUsageType;
    }

    public Set<Long> getIds() {
        return ids;
    }

    public void setIds(Set<Long> ids) {
        this.ids = ids;
    }

    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model;
    }

    public String getSelfModel() {
        return selfModel;
    }

    public void setSelfModel(String selfModel) {
        this.selfModel = selfModel;
    }

    public Long getProcessBranchId() {
        return processBranchId;
    }

    public void setProcessBranchId(Long processBranchId) {
        this.processBranchId = processBranchId;
    }

    private List<InterfaceParam> requestList;

    private List<InterfaceParam> responseList;

    public String getAliasName() {
        return aliasName;
    }

    public void setAliasName(String aliasName) {
        this.aliasName = aliasName;
    }

    public List<InterfaceParam> getRequestList() {
        return requestList;
    }

    public void setRequestList(List<InterfaceParam> requestList) {
        this.requestList = requestList;
    }

    public List<InterfaceParam> getResponseList() {
        return responseList;
    }

    public void setResponseList(List<InterfaceParam> responseList) {
        this.responseList = responseList;
    }

    public String getOptType() {
        return optType;
    }

    public void setOptType(String optType) {
        this.optType = optType;
    }

    public String getNonFunctionalRequirements() {
        return nonFunctionalRequirements;
    }

    public void setNonFunctionalRequirements(String nonFunctionalRequirements) {
        this.nonFunctionalRequirements = nonFunctionalRequirements;
    }

    public String getInterfaceDescription() {
        return interfaceDescription;
    }

    public void setInterfaceDescription(String interfaceDescription) {
        this.interfaceDescription = interfaceDescription;
    }

    public String getDubboUrl() {
        return dubboUrl;
    }

    public void setDubboUrl(String dubboUrl) {
        this.dubboUrl = dubboUrl;
    }

    public Set<Long> getRelationInterfaceIds() {
        return relationInterfaceIds;
    }

    public void setRelationInterfaceIds(Set<Long> relationInterfaceIds) {
        this.relationInterfaceIds = relationInterfaceIds;
    }

    public Set<Long> getDubboInterfaceIds() {
        return dubboInterfaceIds;
    }

    public void setDubboInterfaceIds(Set<Long> dubboInterfaceIds) {
        this.dubboInterfaceIds = dubboInterfaceIds;
    }

    public Integer getInterfaceType() {
        return interfaceType;
    }

    public void setInterfaceType(Integer interfaceType) {
        this.interfaceType = interfaceType;
    }

    public String getMasterFbType() {
        return masterFbType;
    }

    public void setMasterFbType(String masterFbType) {
        this.masterFbType = masterFbType;
    }

    public String getSlaveFbType() {
        return slaveFbType;
    }

    public void setSlaveFbType(String slaveFbType) {
        this.slaveFbType = slaveFbType;
    }

    public String getMasterInterfaceName() {
        return masterInterfaceName;
    }

    public void setMasterInterfaceName(String masterInterfaceName) {
        this.masterInterfaceName = masterInterfaceName;
    }

    public String getSlaveInterfaceName() {
        return slaveInterfaceName;
    }

    public void setSlaveInterfaceName(String slaveInterfaceName) {
        this.slaveInterfaceName = slaveInterfaceName;
    }

    /** 描述 */
    @Excel(name = "描述")
    private String description;

    /** 排序 */
    @Excel(name = "排序")
    private String sortNum;

    /** 状态（0正常 1停用） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setInterfaceId(Long interfaceId) 
    {
        this.interfaceId = interfaceId;
    }

    public Long getInterfaceId() 
    {
        return interfaceId;
    }
    public void setRelationInterfaceId(Long relationInterfaceId)
    {
        this.relationInterfaceId = relationInterfaceId;
    }

    public Long getRelationInterfaceId()
    {
        return relationInterfaceId;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setSortNum(String sortNum) 
    {
        this.sortNum = sortNum;
    }

    public String getSortNum() 
    {
        return sortNum;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("interfaceId", getInterfaceId())
            .append("relationInterfaceId", getRelationInterfaceId())
            .append("description", getDescription())
            .append("sortNum", getSortNum())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
